package b3.model
{
	import b3.net.ServerEvent;
	import b3.net.ServerRequest;
	
	import flash.utils.*;
	public class Guild extends Player
	{
		// 公会模型   内中应该包含各种公会数据
		
		//公会成员列表
		private var memberList:Array;
		//公会管理员
		private var leader:int;
		//公会人口
		private var population:int;
		//公会申请人列表
		private var requestList:Array;
		
		
		
		public function Guild(guildId:int, guildName:String)
		{
			super(guildId);
			this.name = guildName;
		}
		//拒绝请求
		public function rejectRequest(requestId:int):void
		{
			//放入接受的队列中 （或者采取与服务器更新的同步方式）
			memberList.push(requestId);
		}
		//接受请求
		public function confirmRequest(requestId:int):void
		{
			
		}
		
		public function getMemberList():void
		{
			var serverRequest:ServerRequest = new ServerRequest(ServerEvent.GET_MEMBER_List, {guildId:this.userId});
			serverRequest.setHandleFunc( handleGetMemberList);
			serverRequest.post();
		}
		
		public function handleGetMemberList(data:Object):void
		{//获得
			
		}

	}
}